/**
 * 
 */
package com.wrsr.examsys.teacher.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.wrsr.examsys.base.dao.BaseDao;
import com.wrsr.examsys.base.service.impl.BaseServiceImpl;
import com.wrsr.examsys.domain.College;
import com.wrsr.examsys.teacher.service.CollegeService;

/**
 * @author <a href="mailto:2397431783@qq.com">wangruishun</a>
 * @version examsy1.0 2015年1月8日 下午11:57:40
 */
@Service("collegeService")
public class CollegeServiceImpl extends BaseServiceImpl<College> implements CollegeService {

	/* (non-Javadoc)
	 * @see com.wrsr.examsys.base.service.impl.BaseServiceImpl#setDao(com.wrsr.examsys.base.dao.BaseDao)
	 */
	@SuppressWarnings("rawtypes")
	@Resource(name="collegeDao")
	public void setDao(BaseDao dao) {
		super.setDao(dao);
	}

	/* (non-Javadoc)
	 * @see com.wrsr.examsys.teacher.service.CollegeService#getCollegeByUniversityId()
	 */
	@Override
	public List<College> getCollegeByUniversityId(Integer universityId) {
		String hql="from College where universityId=?";
		return super.findEntityByHQL(hql, universityId);
	}

}
